﻿/*
 * author:      可乐加糖
 * email:       black.angel.liu@gmail.com
 */
 
Ext.define('AM.view.user.List',{
	extend: 'Ext.grid.Panel',
	alias:'widget.userlist',
	
	title:'All Users',
	
	initComponent:function(){
		
		this.store = {
			fields: ['name','email'],
			data: [
				{name:'Ed',    email:'ed@sencha.com'},
				{name:'Tommy', email:'Tommy@sencha.com'}
			]
		}
		
		this.columns = [
			{header:'Name',dataIndex:'name',flex:1},
			{header:'Email',dataIndex:'email',flex:1}
		]
		
		this.callParent(arguments);
	}
});